package com.lin.filegraph.utils.parser.node;

import org.eclipse.jdt.core.dom.ASTNode;

/**
 * @description:
 * @author: linhuaixu
 * @time: 2023/5/18 10:23
 */

public class JFieldNode extends JTreeNode {
    private String fieldName = null;
    private String modifier = null;
    private String returnType = null;

    public JFieldNode(String filePath, ASTNode astNode, String filedName, String returnType, String modifier) {
        super(filePath, astNode);
        this.fieldName = filedName;
        this.returnType = returnType;
        this.modifier = modifier;
    }

    public String getFieldName() {
        return fieldName;
    }

    public void setFieldName(String filedName) {
        this.fieldName = filedName;
    }

    public String getReturnType() {
        return returnType;
    }

    public String getModifier() {
        return modifier;
    }

    @Override
    public String toString() {
        return "[FieldNode] fieldName:" + fieldName + " returnType:" + returnType;
    }

}

